<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="lb" uri="http://www.itlaobing.cn/tags" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<title>特价商品列表</title>


<div class="row no-gutter">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4>[特价商品]列表</h4>

<table class="table table-bordered table-hover table-responsive">
    <thead>
    	<th>序号</th>
		<th>名称</th>
		<th>开始时间</th>
		<th>结束时间</th>
 		<th>状态</th>
    </thead>
    
    <tbody>
		<c:forEach  var="schedulee" items="${schedule}" varStatus="stat">
			<tr  id="row${schedulee.id}">
			<th scope="row">${stat.index+1}</th>
			<td>${schedulee.scheduleName}</td>
			<td><fmt:formatDate value="${schedulee.startDate}" pattern="yyyy-MM-dd" /></td>
			<td>${schedulee.endDate}</td>
			<td>${schedulee.state.text}</td>
			</tr>
		</c:forEach>
		</tbody>		
</table>
<!-- <table class="table table-bordered table-hover table-responsive">
    <thead>
    
    </thead>
    
    
</table> -->

<lb:pagination pager="${schedule}" />
			
			</div>
		</div>
	</div>
	
</div>	
				